InventoryItem description ...


Properties


CursorGraphic

Gets/sets the sprite used as the item's mouse cursor.


Graphic

int Graphic

Gets/sets the sprite used to display the inventory item.


ID

int ID

Gets the ID number of the inventory item.


Name

string Name

Gets/sets the name of the inventory item.


Methods


GetAtScreenXY

static InventoryItem GetAtScreenXY(int x, int y)

Returns the inventory item at the specified location.


GetBinaryProperty

int GetBinaryProperty(string property)

Gets a binary integer custom property for this item (0 or 1).


GetBoolProperty

bool GetBoolProperty(string property)

Gets a bool custom property for this item.


GetIntegerProperty

LooseInteger GetIntegerProperty(string property)

Gets an integer custom property for this item.


GetTextProperty

string GetTextProperty(string property)

Gets a text custom property for this item.


IsInteractionAvailable

Checks whether an event handler has been registered for clicking on this item in the specified cursor mode.


RunInteraction

void RunInteraction(CursorMode cursorMode)

Runs the registered event handler for this item.


SetBinaryProperty

void SetBinaryProperty(string property, int value)

Sets a binary integer Custom Property for this item.


SetBoolProperty

void SetBoolProperty(string property, bool value)

Sets a bool Custom Property for this item.


SetIntegerProperty

void SetIntegerProperty(string property, int value)

Sets an integer Custom Property for this item.


SetTextProperty

void SetTextProperty(string property, string value)

Sets a text Custom Property for this item.